#include "bank.h"
#include <cstdio>

void useBank();
void useBank2();

int main(int argc, char *argv[]) {
  printf("==== ch04 p02 ====\n");
  printf("---- useBank() ----\n");
  useBank();
  printf("---- useBank2() ----\n");
  useBank2();
  return 0;
}

void useBank() {
  Bank bank;
  bank.makeTransfer(1000, 2000, 49.05);
  bank.makeTransfer(2000, 4000, 20.00);
}

void useBank2() {
  Bank bank;
  bank.makeTransfer(1000, 2000, 49.05);
  bank.setLoggerType(LoggerType::File);
  bank.makeTransfer(2000, 4000, 20.00);
}
